home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / os2 / pvm34b3.zip / pvm34b3 / pvm3 / tasker / Makefile.aimk next >
Makefile  |  1997-07-22  |  968b  |  45 lines

  1. #
  2. # $Id: Makefile.aimk,v 1.5 1997/06/17 20:48:50 pvmsrc Exp $
  3. #
  4. # Generic Makefile body to be concatenated to config header.
  5. #
  6. # Imports:
  7. #  PVM_ARCH   = the official pvm-name of your processor
  8. #  ARCHCFLAGS = special cc flags
  9. #  ARCHLIB    = special libs needed for daemon
  10. #
  11. SHELL        =    /bin/sh
  12. PVMDIR        =    ../..
  13. PVMIDIR        =    $(PVMDIR)/include
  14. PVMLDIR        =    $(PVMDIR)/lib/$(PVM_ARCH)
  15. PVMLIB        =    pvm3
  16. PVMLIBDEP    =    $(PVMLDIR)/lib$(PVMLIB).a
  17. SDIR        =    $(PVMDIR)/tasker
  18. BDIR        =    $(PVMDIR)/bin
  19. XDIR        =    $(BDIR)/$(PVM_ARCH)
  20.  
  21. CFLOPTS        =    -g
  22. CFLAGS        =    $(CFLOPTS) -I$(PVMIDIR) $(ARCHCFLAGS) \
  23.                 -DIMA_$(PVM_ARCH) $(ARCHCFLAGS)
  24. LIBS        =    -L$(PVMLDIR) -l$(PVMLIB) $(ARCHLIB)
  25.  
  26. HEADERS        =    $(PVMIDIR)/pvm3.h $(PVMIDIR)/pvmproto.h
  27.  
  28. default:    all
  29.  
  30. all:    $(XDIR) $(XDIR)/tasker
  31.  
  32. $(XDIR):
  33.     - mkdir $(BDIR)
  34.     - mkdir $(XDIR)
  35.  
  36. $(XDIR)/tasker:  tasker
  37.     cp tasker $(XDIR)
  38.  
  39. tasker:    $(SDIR)/tasker.c $(HEADERS) $(XDIR) $(PVMLIBDEP)
  40.     $(CC) $(CFLAGS) -o tasker $(SDIR)/tasker.c $(LIBS)
  41.  
  42. clean:
  43.     rm -f tasker *.o
  44.  
  45.